<% form_for @person do |u| %>

  <p>
    <%= u.label :name, "Nome" %>
    <%= u.text_field :name %>
  </p>

  <p>
    <%= u.label :surname, "Cognome" %>
    <%= u.text_field :surname %>
  </p>
  
  <p>
    <%= u.label :country_id, "Stato" %>
    <%= select("person", "country_id", Country.find(:all).collect {|p| [ p.name, p.id ] } , {:include_blank => "Seleziona uno stato"}) %>
  </p>
  
  <p>
    <label for="person[born_date]">Data di nascita</label>
    <%= calendar_date_select_includes "red" %>
    <%= calendar_date_select_tag "person[born_date]", Time.now, :time => false, :year_range => 1900..Date.today.year-1 %>  
  </p>
  
  <p>
    <%= u.label :occupation, "Occupazione" %>
    <%= u.text_field :occupation %>
  </p>
    
  <p>
    <%= u.label :note, "Note" %>
    <%= u.text_area :note, :size => "40x10" %>
  </p>
  
  <%= submit_tag "invia" %>
<% end %>